//
//  CardInputView.h
//  AwesomeProject
//
//  Created by 李顺风 on 2021/3/25.
//

#import <Stripe/Stripe.h>
#import <React/RCTComponent.h>
#import <React/UIView+React.h>


NS_ASSUME_NONNULL_BEGIN

@interface CardInputView : UIView <STPPaymentCardTextFieldDelegate>

@property (nonatomic, copy) void(^resultBlock)(STPPaymentCardTextField *result,CardInputView *view);
@property (nonatomic, copy) RCTBubblingEventBlock onChange;

- (id)initWithFrame:(CGRect)frame;
//@property (nonatomic, copy) RCTBubblingEventBlock onChange;
@property (nonatomic, strong) UIFont *font;
@property(nonatomic, strong) UIColor *textColor;
@property(nonatomic, strong) UIColor *textErrorColor;
@property(nonatomic, strong) UIColor *placeholderColor;
@property(nonatomic, copy) NSString *numberPlaceholder;
@property(nonatomic, copy) NSString *expirationPlaceholder;
@property(nonatomic, copy) NSString *cvcPlaceholder;
@property(nonatomic, strong) UIColor *cursorColor;
@property(nonatomic, strong) UIColor *borderColor;
@property(nonatomic, assign) CGFloat borderWidth;
@property(nonatomic, assign) CGFloat cornerRadius;
@property(nonatomic, assign) UIKeyboardAppearance keyboardAppearance;
- (void)setCardParams:(STPCardParams *)cardParams;

@end

NS_ASSUME_NONNULL_END
